package utils

import (
	"encoding/base64"
	"math/rand"
)

func AESencrypt() (res string, err error) {
	res = ""
	err = nil
	return
}

//random a byte[]
func RandomBytes(n int) []byte {
	r := make([]byte, n)
	for i := 0; i < n; i++ {
		r[i] = byte(rand.Intn(255))
	}
	return r
}

func Base64Encode(data []byte) string {
	return base64.StdEncoding.EncodeToString(data)
}

func Base64Decode(data string) (res string, err error) {
	res = ""
	err = nil
	return
}
